package Io;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class PW {
    public static void main(String[] args) throws IOException {
     PrintWriter pw=new PrintWriter("pw.txt");
     pw.println("鸡你太美");
     pw.println("你干嘛，哎哟");
     pw.close();

      /*  FileOutputStream fos=new FileOutputStream("pw.txt");
        OutputStreamWriter osw=new OutputStreamWriter(fos, StandardCharsets.UTF_8);
        BufferedWriter bw=new BufferedWriter(osw);
        bw.write("鸡你太美");
        bw.write("你干嘛，哎哟");
        bw.close();

       */

    }
}
